<template>
  <el-tabs v-model="activeName" type="card" @tab-click="handleClick">
    <el-tab-pane
      v-for="(item, index) in entryList"
      :key="index"
      :label="item.title"
      :name="item.name"
    >
      <!-- :earList="earList" -->
      <EntryTable :type="item.name" ></EntryTable>
      
    </el-tab-pane>
  </el-tabs>
</template>

<script>
import { entryList } from "./constant/constant";
import EntryTable from "./tableList";
export default {
   provide() {
    return {
      name: this.name,
    };
  },
  components: { EntryTable },
  data() {
    return {
      activeName: "breeding",
      entryList,
      name: "entry",
    };
  },
  methods: {
    //切换tab
    handleClick(tab) {

    },
  },
};
</script>
